package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.BookTopicalDao;
import io.wdb.modules.generator.generator.entity.BookTopicalEntity;
import io.wdb.modules.generator.generator.service.BookTopicalService;



@Service("bookTopicalService")
public class BookTopicalServiceImpl implements BookTopicalService {
	@Autowired
	private BookTopicalDao bookTopicalDao;
	
	@Override
	public BookTopicalEntity queryObject(Long id){
		return bookTopicalDao.queryObject(id);
	}
	
	@Override
	public List<BookTopicalEntity> queryList(Map<String, Object> map){
		return bookTopicalDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return bookTopicalDao.queryTotal(map);
	}
	
	@Override
	public void save(BookTopicalEntity bookTopical){
		bookTopicalDao.save(bookTopical);
	}
	
	@Override
	public void update(BookTopicalEntity bookTopical){
		bookTopicalDao.update(bookTopical);
	}
	
	@Override
	public void delete(Long id){
		bookTopicalDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		bookTopicalDao.deleteBatch(ids);
	}
	
}
